﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace 易保全
{
    public class AppInfo
    {

        public static bool remenberPwd {get;set;}
        public static string WebSite { get { return "https://www.ebaoquan.org/"; } }
        public static string QQUrl { get { return "http://wpa.qq.com/msgrd?v=3&uin=1816550434&site=qq&menu=yes"; } }

        public static string EmailUrl { get { return "mailto:service@ebaoquan.org"; } }
        public static int Delay { get { return 50000; } }
        public static bool MsgShown { get; set; }

        public static bool Cancled { get; set; }
        /// <summary>
        /// 接口基地址
        /// </summary>
        public static string InterfaceBase
        {
            get
            {
               return @"http://ent.ebaoquan.org/";
            }
        }

        #region 验证保全
        public static string VerificationPreservation {
            get {
                return InterfaceBase + "enterpriseUserApi/verificationPreservationHash";
            }
        }
        public static string Beianhao {
            get {
                return "beianhao";
            }
        }
        public static string Hash
        {
            get
            {
                return "hash";
            }
        }
        #endregion

        public static int PageSize { get { return 15; } }
        public static string TakePreserveTip
        {
            get
            {
                return @"<body style='top:0'><ol style='font-size:12px;letter-spacing:2px;line-height:150%;list-style-type:upper-alpha'>
        <li><u style='color:#ee4a4b;font-weight:800'>取证前请务必先关闭其他浏览器，在本客户端自带浏览器中完成取证，否则该取证将被视为无效取证。</u></li>
        <li>取证最大录像时间为10分钟。</li>
        <li>你随后可查看录制的视频并申请出证,请保存好您的视频并不要进行任何修改以备校验。</li>
    </ol></body>";
            }
        }
        /// <summary>
        /// 最大取证时间,单位:分
        /// </summary>
        public static int MaxTakePreserveMins { get { return 10; } }
        /// <summary>
        /// 提交保全的加密串
        /// </summary>
        public static string AppKey { get; set; }
        /// <summary>
        /// 提交保全的加密串
        /// </summary>
        public static string AppSecret { get; set; }
        public static string AppName
        {
            get
            {
                return "易保全取证系统";
            }
        }
        /// <summary>
        /// 取证窗口标题
        /// </summary>
        public static string IETitle { get { return "【友情提示】正在进行全程录像，请在本窗口进行取证操作!"; } }
        public static string AppVersion
        {
            get { return "2.0"; }
        }
        public static string VersionCheckUrl {
            get {
                return InterfaceBase + "/enterpriseUserApi/provisioning";
            }
        }
        /// <summary>
        /// 保全录像 备注
        /// </summary>
        public static string PreserveRemark { get; set; }
        public static string PreserveName{ get; set; }
        /// <summary>
        /// 当前用户的头像URL
        /// </summary>
        public static string ImagePath { get; set; }

        public static string UserId { get; set; }

        public static string UserName { get; set; }

        /// <summary>
        /// 取证状态
        /// </summary>
        public static bool TakeEvidenceFlag { get; set; }
        /// <summary>
        /// 代理服务器地址
        /// </summary>
        public static string ProxyAddr
        {
            get
            {
                return "219.153.5.154:9981";
            }
        }

        #region 保全相关
        public static string PreservationHashURLEnt
        {
            get
            {
                return InterfaceBase + "enterpriseUserApi/createPreservationHash";
            }
        }
        #region 保全类型
        public enum PreservationType
        {
            WebDesign = 0,
            GraphicDesign = 1,
            Projection = 2,
            VideoWorks = 3,
            MusicWorks = 4,
            ElectronicContract = 5,
            ElectronicEvidence = 6,
            VideoProof = 7,
            Other = 9999
        }
        #endregion

        #region 保全状态
        public enum PreservationStatus
        {
            SUCCESS = 1,
            DELETED = 2,
            TRANED = 3
        }
        #endregion
        #endregion

        #region 用户登录
        /// <summary>
        /// 登录状态
        /// </summary>
        public static bool LoginStatus { get; set; }
        public static string LoginUrl
        {
            get
            {
                return InterfaceBase + "enterpriseUserApi/login";
            }
        }
        public static string LoginAccountKey
        {
            get { return "email"; }
        }
        public static string LoginPwdKey
        {
            get { return "password"; }
        }
        /// <summary>
        /// 响应Headers
        /// </summary>
        public static WebHeaderCollection Headers { get; set; }

        public static string AuthStatus { get; set; }
        /// <summary>
        /// sessionID
        /// </summary>
        public static string SessionId { get; set; }
        public static long ServerIndex { get; set; }

        public static String Cookies { get; set; }
        #endregion

        #region 我的保全数据接口
        public static string FindPreservationURL
        {
            get
            {
                return InterfaceBase + "enterpriseUserApi/findPreservation";
            }
        }

        #endregion
        /// <summary>
        /// ping地址
        /// </summary>
        public static string PingUrl
        {
            get
            {
                return InterfaceBase + "enterpriseUserApi/ping";
            }
        }
    }
}
